.class Lcom/teewoo/app/bus/ui/LineDetailActivity$3$1;
.super Ljava/lang/Object;
.source "LineDetailActivity.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/teewoo/app/bus/ui/LineDetailActivity$3;->run()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Landroid/widget/AdapterView$OnItemClickListener;"
    }
.end annotation


# instance fields
.field final synthetic this$1:Lcom/teewoo/app/bus/ui/LineDetailActivity$3;


# direct methods
.method constructor <init>(Lcom/teewoo/app/bus/ui/LineDetailActivity$3;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/LineDetailActivity$3$1;->this$1:Lcom/teewoo/app/bus/ui/LineDetailActivity$3;

    .line 149
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 8
    .parameter
    .parameter "view"
    .parameter "position"
    .parameter "id"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .line 152
    .local p1, parent:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    move-object v0, p1

    check-cast v0, Landroid/widget/ListView;

    move-object v2, v0

    .line 153
    .local v2, listView:Landroid/widget/ListView;
    invoke-virtual {v2, p3}, Landroid/widget/ListView;->getItemAtPosition(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/teewoo/app/bus/model/Station;

    .line 155
    .local v3, sta:Lcom/teewoo/app/bus/model/Station;
    new-instance v1, Landroid/content/Intent;

    iget-object v4, p0, Lcom/teewoo/app/bus/ui/LineDetailActivity$3$1;->this$1:Lcom/teewoo/app/bus/ui/LineDetailActivity$3;

    invoke-static {v4}, Lcom/teewoo/app/bus/ui/LineDetailActivity$3;->access$0(Lcom/teewoo/app/bus/ui/LineDetailActivity$3;)Lcom/teewoo/app/bus/ui/LineDetailActivity;

    move-result-object v4

    const-class v5, Lcom/teewoo/app/bus/ui/StationInLineDetailActivity;

    invoke-direct {v1, v4, v5}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 156
    .local v1, intentToDetail:Landroid/content/Intent;
    const-string v4, "com.teewoo.app.bus.stationName"

    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/Station;->getName()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v1, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 157
    const-string v4, "com.teewoo.app.bus.stationId"

    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/Station;->getId()Ljava/lang/Integer;

    move-result-object v5

    if-nez v5, :cond_0

    const/4 v5, -0x1

    :goto_0
    invoke-virtual {v1, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 158
    const-string v4, "com.teewoo.app.bus.lineId"

    iget-object v5, p0, Lcom/teewoo/app/bus/ui/LineDetailActivity$3$1;->this$1:Lcom/teewoo/app/bus/ui/LineDetailActivity$3;

    invoke-static {v5}, Lcom/teewoo/app/bus/ui/LineDetailActivity$3;->access$0(Lcom/teewoo/app/bus/ui/LineDetailActivity$3;)Lcom/teewoo/app/bus/ui/LineDetailActivity;

    move-result-object v5

    invoke-static {v5}, Lcom/teewoo/app/bus/ui/LineDetailActivity;->access$8(Lcom/teewoo/app/bus/ui/LineDetailActivity;)I

    move-result v5

    invoke-virtual {v1, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 160
    const-string v4, "com.teewoo.app.bus.collection.key"

    iget-object v5, p0, Lcom/teewoo/app/bus/ui/LineDetailActivity$3$1;->this$1:Lcom/teewoo/app/bus/ui/LineDetailActivity$3;

    invoke-static {v5}, Lcom/teewoo/app/bus/ui/LineDetailActivity$3;->access$0(Lcom/teewoo/app/bus/ui/LineDetailActivity$3;)Lcom/teewoo/app/bus/ui/LineDetailActivity;

    move-result-object v5

    iget-object v6, p0, Lcom/teewoo/app/bus/ui/LineDetailActivity$3$1;->this$1:Lcom/teewoo/app/bus/ui/LineDetailActivity$3;

    invoke-static {v6}, Lcom/teewoo/app/bus/ui/LineDetailActivity$3;->access$0(Lcom/teewoo/app/bus/ui/LineDetailActivity$3;)Lcom/teewoo/app/bus/ui/LineDetailActivity;

    move-result-object v6

    invoke-static {v6}, Lcom/teewoo/app/bus/ui/LineDetailActivity;->access$8(Lcom/teewoo/app/bus/ui/LineDetailActivity;)I

    move-result v6

    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/Station;->getId()Ljava/lang/Integer;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/Integer;->intValue()I

    move-result v7

    invoke-static {v5, v6, v7}, Lcom/teewoo/app/bus/ui/LineDetailActivity;->access$9(Lcom/teewoo/app/bus/ui/LineDetailActivity;II)Z

    move-result v5

    invoke-virtual {v1, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 161
    const-string v4, "com.teewoo.app.bus.lineName"

    iget-object v5, p0, Lcom/teewoo/app/bus/ui/LineDetailActivity$3$1;->this$1:Lcom/teewoo/app/bus/ui/LineDetailActivity$3;

    invoke-static {v5}, Lcom/teewoo/app/bus/ui/LineDetailActivity$3;->access$0(Lcom/teewoo/app/bus/ui/LineDetailActivity$3;)Lcom/teewoo/app/bus/ui/LineDetailActivity;

    move-result-object v5

    invoke-static {v5}, Lcom/teewoo/app/bus/ui/LineDetailActivity;->access$4(Lcom/teewoo/app/bus/ui/LineDetailActivity;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v1, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 162
    iget-object v4, p0, Lcom/teewoo/app/bus/ui/LineDetailActivity$3$1;->this$1:Lcom/teewoo/app/bus/ui/LineDetailActivity$3;

    invoke-static {v4}, Lcom/teewoo/app/bus/ui/LineDetailActivity$3;->access$0(Lcom/teewoo/app/bus/ui/LineDetailActivity$3;)Lcom/teewoo/app/bus/ui/LineDetailActivity;

    move-result-object v4

    invoke-virtual {v4, v1}, Lcom/teewoo/app/bus/ui/LineDetailActivity;->startActivity(Landroid/content/Intent;)V

    .line 163
    return-void

    .line 157
    :cond_0
    invoke-virtual {v3}, Lcom/teewoo/app/bus/model/Station;->getId()Ljava/lang/Integer;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

    move-result v5

    goto :goto_0
.end method
